<?php
/**
 * @package		Joomla.Site
 * @subpackage	com_users
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 * @since		1.5
 */

defined('_JEXEC') or die;

JHtml::_('behavior.keepalive');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
?>
<?php                        	       
$input_email = JText::_( 'Indtast din email' );

?>                        
 <script type="text/javascript">                   
jQuery(document).ready(function(jQuery) {
	
		jQuery("#user-registration").validate(
			{
				errorPlacement: function(error, element) {			
			},
			invalidHandler: function(form, validator) {
			  var errors = validator.numberOfInvalids();
			if (errors) {
                //$('#alert').html(validator['errorList'][0]['message']);
				jQuery('#alert').html(validator['errorList'][0]['message']);
    			jQuery('#backoverlay').show();
    			jQuery('#show_popup').show();
            	jQuery('#f_focus').html(validator['errorList'][0]['element'].name);
				validator['errorList'][0]['element'].focus();
				
			  } else {
			  }
			},
			rules: {
				email_forget : {
					required: true,
					email:true,
				
				}
			},
			messages: {
				email_forget: "<?php echo $input_email; ?>"
			}
		});
        close_popup=function(){		
			var fel=jQuery('#f_focus').html();
            jQuery('#backoverlay').hide();
    		jQuery('#show_popup').hide();
    		jQuery('#' + fel ).focus();		
      };
      
      
	});
</script>
<div id="header">
  <div id="w-header">
    <div class="logo"><a href="index.php">Forside</a> </div>
    <!--.logo-->
     {module login menu}    
    <!--.nav-top-1-->
    <div class="clear"></div>
    <div class="main-nav">
      {module main menu}
    </div>
    <!--.main-nav-->
    <div class="clear"></div>
  </div>
  <!--#w-header--> 
</div>
<!--#header-->

<div id="main">
  <div id="w-main">
     <div id="main-left">
	<div class="left-find"></div>
	<div class="right-find"></div>
		<div class="find">
			{module search}
		</div> 
      <!--.find-->
      <div class="clear"></div>
      <div class="infomation">
		<?php $article = JUtility::getArticle(15); ?>
        <h2><a href="#"><?php echo $article->title; ?></a></h2>
        <?php echo $article->introtext; ?>
      </div>
      <!--.infomation--> 
    </div>
    <!--#main-left-->
    <div id="main-right2">
		<div id="edit-account-page">
			<div class="edit-account-content">
				<form id="user-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=reset.checkSendMail'); ?>" method="post" class="form-validate">
					<fieldset>
					<?php $article = JUtility::getArticle(3);	?>
						<?php echo $article->introtext;?>         
						<div class="email-forgot">
							<label>EMAIL ADRESSE:</label><br />
							<input type="text" value="" id="email_forget" name="email_forget" />
						</div>
					  
					   
						<div class="bnt-send2">
							<a onclick="jQuery('#user-registration').submit();">Send</a>
						</div><!--bnt-send2-->
						<div class="back">
							<h4><a onclick="javascript:history.back();">Tilbage</a></h4>
						</div><!--.black-->
						
					</fieldset>
				</form>
			</div>	
		</div>	
			<div class="clear"></div>
    </div>
    <!--#main-right--> 
  </div>
  <!--#w-main--> 
</div>
<!--#main-->
<div class="clear"></div>
<div id="contact">
  <div id="w-contact">
    <div class="left-con">
      <div class="left-con-top"></div>
      <!--left-con-top-->
      <div class="left-con-mid">
        <div class="contact-con">
		<?php $article = JUtility::getArticle(17); ?>
          <h2><a href="#"><?php echo $article->title; ?></a></h2>
          <?php echo $article->introtext; ?>
        </div>
        <!--.contact-con-->
        <div class="contact-con contact-con2">
			<?php $article = JUtility::getArticle(18); ?>
			<h2><a href="#"><?php echo $article->title; ?></a></h2>
			<?php echo $article->introtext; ?>
        </div>
        <!--.contact-con--> 
      </div>
      <!--left-con-mid-->
      <div class="left-con-bottom"></div>
      <!--left-con-bottom--> 
    </div>
    <!--.left-con-->
    
    <div class="address">
		<?php $article = JUtility::getArticle(16); ?>
		<h2><?php echo $article->title; ?></h2>
		<?php echo $article->introtext; ?>
    </div>
    <!--address--> 
    
    <div class="contact-form">
		{module kontakt}
    </div><!--.contact-form-->
  </div>
  <!--w-contact--> 
</div>
<!--#contact-->
<div class="clear"></div>
<div id="copyright">
	<div id="w-copyright">
		{module footer}
	</div>
</div>
<!--#copyright-->

<?php return; ?>
<div id="main2">
  <div id="w-main2">
    <div id="login-page">
    <h2><?php echo $article->title;?></h2>
    <div class="w-login-form">
   	  <div class="login-top-page"></div><!--.login-top-page-->
      <div class="login-mid-page">
      	<form id="user-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=reset.checkSendMail'); ?>" method="post" class="form-validate">
        	<fieldset>
            	<?php echo $article->introtext;?>         
            	<div class="email-forgot">
                	<label>EMAIL ADRESSE:</label><br />
                    <input type="text" value="" id="email_forget" name="email_forget" />
                </div>
              
               
                <div class="bnt-send2">
                	<a onclick="jQuery('#user-registration').submit();">Send</a>
                </div><!--bnt-send2-->
                <div class="back">
                	<h4><a onclick="javascript:history.back();">Tilbage</a></h4>
                </div><!--.black-->
                
            </fieldset>
        </form>
        <div class="clear"></div>
      </div><!--.login-mid-page-->
      <div class="login-bottom-page"></div><!--.login-bottom-page-->
    </div><!--#login-page-->
    </div><!--.w-login-form-->
   </div><!--#w-main2-->
</div><!--#main2-->
<?php return;?>


<div class="reset<?php echo $this->pageclass_sfx?>">
	<?php if ($this->params->get('show_page_heading')) : ?>
	<h1>
		<?php echo $this->escape($this->params->get('page_heading')); ?>
	</h1>
	<?php endif; ?>

	<form id="user-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=reset.request'); ?>" method="post" class="form-validate">

		<?php foreach ($this->form->getFieldsets() as $fieldset): ?>
		<p><?php echo JText::_($fieldset->label); ?></p>		<fieldset>
			<dl>
			<?php foreach ($this->form->getFieldset($fieldset->name) as $name => $field): ?>
				<dt><?php echo $field->label; ?></dt>
				<dd><?php echo $field->input; ?></dd>
			<?php endforeach; ?>
			</dl>
		</fieldset>
		<?php endforeach; ?>

		<div>
			<button type="submit" class="validate"><?php echo JText::_('JSUBMIT'); ?></button>
			<?php echo JHtml::_('form.token'); ?>
		</div>
	</form>
</div>
